#include <stdio.h>
int main(int argc, char const *argv[])
{
    int val_arr[10];
    int count = 0;

    int val_1;
    int val_2;
    int val_3;

    for (size_t i = 100; i < 1000; i++)
    {
        val_1 = i % 10;
        val_2 = (i / 10) % 10;
        val_3 = i / 100;

        if(val_1*val_1*val_1 + val_2*val_2*val_2 + val_3*val_3*val_3 == i){
            val_arr[count] = i;
            count++;
        }
    }

    printf("水仙花数是：");
    for (int i = 0; i < count; i++)
    {
        printf("%d ",val_arr[i]);
    }
    printf("\n");
    
    
    return 0;
}
